{% extends "gma/wx_mp/base.html" %}
{% load mytag %}


<!-- CONTENT
  =====================================================================-->

{% block content %}

<div class="page__bd">
    <div class="weui-cells">
        {% if user.avatar %}
        <a class="weui-cell weui-cell_access weui-media-box weui-media-box_appmsg" href="{% url 'gma:avatar' user.id %}" >
        {% else %}
        <a class="weui-cell weui-cell_access weui-media-box weui-media-box_appmsg" href="javascript:" >
        {% endif %}
            <div class="weui-media-box__hd">
                <img class="weui-media-box__thumb avatar" src="{{ user.avatar|cdn }}" alt="">
            </div>
            <div class="weui-media-box__bd">
                <h4 class="weui-media-box__title"> {{ user.nickname }} </h4>
                <p class="weui-media-box__desc">
                    数字ID: {{ user.id }}
                </p>
            </div>
            <div class="weui-cell__ft">  </div>
        </a>
    </div>

    <div class="weui-cells">
        <div class="weui-cell">
            <div class="weui-cell__bd"> <p> 性别 </p> </div>
            <div class="weui-cell__ft">{{ user.gender }}</div>
        </div>

        <div class="weui-cell">
            <div class="weui-cell__bd"> <p> 国家 </p> </div>
            <div class="weui-cell__ft">{{ user.country }}</div>
        </div>

        <div class="weui-cell">
            <div class="weui-cell__bd"> <p> 省份 </p> </div>
            <div class="weui-cell__ft">{{ user.province }}</div>
        </div>

        <div class="weui-cell">
            <div class="weui-cell__bd"> <p> 城市 </p> </div>
            <div class="weui-cell__ft">{{ user.city }}</div>
        </div>
    </div>
</div>

<div class="page__ft">
    <a href="{% url 'gma:home' %}">
        <span class="bottom-logo">
           HiBao
       </span>
    </a>
</div>

{% endblock content %}

<!-- SCRIPT
  =====================================================================-->

{% block extra_js %}
{% endblock extra_js %}
